
const TOKEN_KEY = 'token';
const NAME_KEY = 'username';


export function getToken() {
  return localStorage.getItem(TOKEN_KEY);

}

// 登录成功
export function setToken(token) {
  return localStorage.setItem(TOKEN_KEY, token);
}


export function setName(name) {
  return localStorage.setItem(NAME_KEY, name);
}
export function getName(name) {
  return localStorage.getItem(NAME_KEY, name);
}

